﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace TSites.Login.User
{
    public class TsUserInfo
    {
        #region Properties
        private static string _userInfo = "userInfo";
        public string UsrNm { get; set; }
        public string UsrPwd { get; set; }
        public string Language { get; set; }
        #endregion

        #region Methods
        public static TsUserInfo GetLoginUser()
        {
            TsUserInfo userInfo = (TsUserInfo)HttpContext.Current.Session[_userInfo];
            return userInfo;
        }
        public static void SetLoginUser(TsUserInfo userInfo)
        {
            HttpContext.Current.Session.Add(_userInfo, userInfo);
        }
        #endregion
    }
}
